package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 *  设备信息对象 device_info
 * 
 * @author he
 * @date 2025-09-11
 */
public class DeviceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 位置 */
    @Excel(name = "位置")
    private String position;

    /** 指令 */
    @Excel(name = "指令")
    private String commond;

    /** 状态 */
    private Long state;

    /** 创建人 */
    private Long createUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }

    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    public void setCommond(String commond) 
    {
        this.commond = commond;
    }

    public String getCommond() 
    {
        return commond;
    }

    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("ip", getIp())
            .append("position", getPosition())
            .append("commond", getCommond())
            .append("state", getState())
            .append("createUserId", getCreateUserId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
